﻿<UserControl x:Class="GiveAQuiz.Questions.EssayQuestionEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             d:DesignWidth="200"
             d:DesignHeight="100"
             HorizontalContentAlignment="Stretch">
  <Grid x:Name="LayoutRoot"
        DataContext="{Binding}">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition />
    </Grid.RowDefinitions>

    <TextBlock Text="{Binding DisplayName}" />
    <TextBox AcceptsReturn="True"
             Text="{Binding QuestionText, Mode=TwoWay, NotifyOnValidationError=True}"
             TextWrapping="Wrap"
             MinHeight="45"
             Width="Auto"
             HorizontalAlignment="Stretch"/>
  </Grid>
</UserControl>
